#include "namedPipe.hpp"

int main()
{
    NamedPipe fifo(comm_path, User);
    if (!fifo.OpenForWrite())
    {
        std::cout << "OpenForWrite failed" << std::endl;
        return 1;
    }
    std::cout << "client open named pipe done" << std::endl;
    while (true)
    {
        std::cout << "Please Enter>";
        std::string message;
        std::getline(std::cin, message);
        fifo.WriteNamedPipe(message);
    }

    return 0;
}